package aps.module_Machines;

//Minecraft
import net.minecraft.src.ICrafting;
import net.minecraft.src.InventoryPlayer;
import net.minecraft.src.Slot;
import net.minecraft.src.SlotFurnace;

//APS
import aps.module_Core.ContainerAPS;

public class ContainerPoweredFurnace extends ContainerAPS
{

    public ContainerPoweredFurnace(TileEntityPoweredFurnace cargo, InventoryPlayer playerInv)
    {
    	super(cargo, playerInv);
    	addSlotToContainer(new Slot(cargo, 0, 53, 35));
        addSlotToContainer(new SlotFurnace(playerInv.player, cargo, 1, 101, 35));
        addPlayerInventorySlots(playerInv);
    }
    
    public void updateCraftingResults()
    {
    	super.updateCraftingResults();
    	
    	for (int i = 0; i < crafters.size(); i++)
    		this.tileEntity.sendGUIUpdates(this, (ICrafting)crafters.get(i)); //assuming im sending updates to each person with this gui open
    }
    
    public void updateProgressBar(int i, int j)
    {
    	this.tileEntity.getGUIUpdates(i, j);
    }
}